package practice.w904;
//Car类：brand(品牌)，color，price，构造方法()，start()、run()、stop()
//   - CarTest类：创建对象，访问测试
public class Car {
    public String brand;
    public String color;
    double price;

     Car(){}
    Car(String brand, String color, double price) {
        this.brand = brand;
        this.color = color;
        this.price = price;
    }

    void start(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"块的车子启动了...");
    }
    void run(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"块的车子正在行驶...");
    }
    void stop(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"块的车子停下了...");
    }
}
